﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;

namespace ExhibitionDraw.Common
{
    public partial class CoordinateSystem : Canvas
    {
        public CoordinateSystem()
            : this(400, 300)
        {

        }
        public readonly LogicalPoint RightTop;
        public readonly LogicalPoint LeftBottom;
        public readonly LogicalPoint LeftTop;
        public readonly LogicalPoint RightBottom;

        public CoordinateSystem(double width, double height)
        {
            this.Width = width;
            this.Height = height;
           
            Clip = new RectangleGeometry { Rect = new Rect(0, 0, width, height) };
            //RightTop = ToLogical(new PhysicalPoint(Width, 0));
            //LeftBottom = ToLogical(new PhysicalPoint(0, Height));
            //LeftTop = ToLogical(new PhysicalPoint(0, 0));
            //RightBottom = ToLogical(new PhysicalPoint(Width, Height));

            //EventUtils.SetMouseRightButtonEvent(this, ShowPopMenu);
            //this.Behavior = BehaviorBase.Drag;
        }
    }
}
